import 'package:WebTest/chooseFood/core/model/meal_model.dart';
import 'package:WebTest/chooseFood/core/services/meal_request.dart';
import 'package:flutter/material.dart';

class BDMealViewModel extends ChangeNotifier {
  List<BDMealModel> _meals = [];

  List<BDMealModel> get meals {
    return _meals;
  }

  BDMealViewModel() {
    BDHomeMealRequest.getMealRequestData().then((res) {
      _meals = res;
      notifyListeners();
    });
  }
}
